package at.fhj.itm.game;

public class Question {

	private String question, answer, optionA, optionB, optionC, optionD;
	
	public Question(String question, String optionA, String optionB, String optionC, String optionD, String answer) {
		setQuestion(question);
		setAnswer(answer);
		setOptionA(optionA);
		setOptionB(optionB);
		setOptionC(optionC);
		setOptionD(optionD);
	}
	
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public String getOptionA() {
		return optionA;
	}

	public void setOptionA(String optionA) {
		this.optionA = optionA;
	}

	public String getOptionB() {
		return optionB;
	}

	public void setOptionB(String optionB) {
		this.optionB = optionB;
	}

	public String getOptionC() {
		return optionC;
	}

	public void setOptionC(String optionC) {
		this.optionC = optionC;
	}

	public String getOptionD() {
		return optionD;
	}

	public void setOptionD(String optionD) {
		this.optionD = optionD;
	}

	public boolean isUserAnswerCorrect(String userAnswer) {
		if(this.getAnswer().toLowerCase().equals(userAnswer.toLowerCase())) {
			return true;
		}
		
		return false;
	}
	
}
